			$(function(){
			});
		
			function search(){
				var searchParam = JSON.stringify({
					keyword:$("#keyword").val(),
				});
				$.ajax({
		            url : "search",
		            data : searchParam,
		            type : 'PATCH',
		            dataType : 'json',
		            contentType : 'application/json',
		            success : successFunc,
		            error : errorFunc
			    });
			}
			
			function successFunc(data) {
				if(data != null){
					var list = data.list;
					var innerHtml = "";
					var title = "";
					var content = "";
					var num = (data.pageNum-1)*data.pageSize;
					$.each(list, function(i, row){
						title =  row.title == null?"":row.title;
						content = row.content == null?"":row.content;
						id = row.id;
						console.log(title)
						innerHtml += "<li>" 
										+ "<h3><a>"+title+"</h3></a>"
										+ "<p>"+content+"</p>"
									+ "</li>"
					})
					$("#list").html(innerHtml);
					//加载分页
					console.log(data.pageNum)
					console.log(data.lastPage)
					pageHelper(data.pageNum,data.lastPage);
				}else{
					alert("获取数据失败！");
				}
		    }
		    function errorFunc(data) {
		    	alert("获取数据失败！");
		    }
